package com.zdgk.core.web.controller;

import com.zdgk.core.control.read.modbus.cache.DeviceRegisterCache;
import com.zdgk.core.control.read.modbus.cache.DeviceRegisterCacheResult;
import com.zdgk.core.web.common.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class ControlController {
    @GetMapping("/register")
    public CommonResult<?> register(){
        return CommonResult.data(DeviceRegisterCache.inputRegisterInfo);
    }

    @GetMapping("/rule_value")
    public CommonResult<?> ruleValue(){
        return CommonResult.data(DeviceRegisterCacheResult.ruleValueMap);
    }
}
